
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no" name="format-detection">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1;user-scalable=no;">
    <title>1起购</title>
    <link rel="stylesheet" href="/statics/view/css/bootstrap.css">
    <link rel="stylesheet" href="/statics/view/css/style.css">
    <link rel="stylesheet" href="/statics/view/css/member.css">
    <link rel="stylesheet" href="/statics/view/css/order3.css">
    <script charset="utf-8" src="/statics/view/js/jquery.min.js"></script>
    <script charset="utf-8" src="/statics/view/js/global.js"></script>
    <script charset="utf-8" src="/statics/view/js/bootstrap.min.js"></script>
    <script charset="utf-8" src="/statics/view/js/template.js"></script>
    <script charset="utf-8" src="/statics/view/js/stickTop.js"></script>
    <script type='text/javascript' src="/statics/view/js/jquery.form.js"></script>
    <script type="text/javascript" src="/statics/layer.m/layer.m.js"></script>

    <style type="text/css">
        .details_con li .tb-out-of-stock{
            border: 1px dashed #bbb;
            color:#bbb;
            cursor: not-allowed;
        }
        .no-selected{
            background: #ffe8e8 none repeat scroll 0 0;
            border: 2px solid #be0106;
            margin: -1px;
        }
        /*动态返回顶部*/
        .fixed_box { position: fixed; bottom: .5rem; right: .5rem;display: none; }
    </style>
</head>
<body style="background-color:#fff">

<div class="maincontainer">
    <div class="container wx_wrap mini-innner">
        <div class="row">
            <div class="fanhui_cou">
                <div class="fanhui_1"></div>
                <div class="fanhui_ding">顶部</div>
            </div>
            <header class="header">
                <div class="fix_nav">
                    <div style="max-width:768px;margin:0 auto;background:#db3652;position: relative;">
                        <a class="nav-left back-icon" href="javascript:history.back();">返回</a>

                        <div class="tit">收货人与地址</div>
                        <a class="nav-right icon-home" href="/dbs/index.html">首页</a>
                    </div>
                </div>
            </header>
        </div>
        <div class="row">
            <div class="col-md-12">

                <div class="address_list"  style="-webkit-transform-origin: 0px 0px; opacity: 1; -webkit-transform: scale(1, 1);">
                [#list receiverList as receiver]
                    <div class="userAddress"  style="color: #000000">
                        <ul onclick="javascript:;"  [#if receiver.isDefault]class="selected"[/#if]  data-address_id="${receiver.id}" data-pick-address="${tag}?receiverId=${receiver.id}" mars_sead="checkout_del_address_radio">
                    <li data-consignee="${receiver.consignee}" data-address_id="${receiver.id}" data-area_id="${receiver.area.id}" data-area_name="${receiver.areaName}" data-cod="0" data-transport_day="1" data-dismiss="closeModal">
                        <div><strong>${receiver.consignee}</strong> ${receiver.phone}</div>
                        <div class="temp_click" onclick="setDefault();">
                        ${receiver.areaName}${receiver.address}</div>
                        <div class="edit" onclick="addressEdit( '${receiver.id}','${tag}');"><a  href="javascript:void(0);" >编辑</a></div>
                </li>

                        </ul>
                    </div>
                [/#list]
                    <div class="wap_page" style="text-align:center;"></div>
                    <div class="address_list_link">
                        <a href="/member/receiver/add?tag=${tag}" mars_sead="checkout_add_address_radio" class="item item_new"  style="color: #000000">新增收货人与地址</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<script type="text/javascript">
    $(function(){
        $('.userAddress ul').click(function() {
            $('.userAddress ul').removeClass('selected');
            $(this).addClass('selected');
            var addressId = $(this).parent().attr('address_id');
            showPageLoadingMsg('加载中...');
            /**
             showPageLoadingMsg('设置默认收货地址中...');
             $.ajax({
	    		"url":contextPath + "/legendshop-UI2/defaultaddress/"+ addressId ,
	    		type:'post',
	    		async : true, //默认为true 异步
	    		error: function(jqXHR, textStatus, errorThrown) {
	    		},
	    		success:function(result){
	    			backspace();
	    		}
	    	});**/


        });

    });

    /** 编辑收货地址 **/
    function addressEdit(addrId,tag){
        location.href ="/member/receiver/edit?id="+addrId+"&tag="+tag;
    }
</script>
</body>
</html>

